The Advanced Calendar Component > FAdvancedCalendar.getCellData(dateObj)

 

FAdvancedCalendar.getCellData(dateObj)

Availability

Flash Player 6.

Usage

myCalendar.getCellData(dateObj);

Parameters

dateObj A Date object specifying the date from which to return data.

Returns

An Array of Objects with data asscociated with the passed in date. You should access the data property of each returned object to access the data you have stored.

Description

Returns the data object for the specified date.

Example

The following example associates data with a date, and then uses the Date object to retrieve that data.

var dateObj = new Date();
var myData = {user: "testUser", id: "tuser"};
myCalendar.setCellData(myData, dateObj);
var foo = myCalendar.getCellData(dateObj);
trace(foo[0].data.user); // traces"testUser"
trace(foo[0].data.id); // traces "tuser"

See also

FAdvancedCalendar.setCellData
FAdvancedCalendar.setDataProvider